package com.atguigu.day11.enumtest;

import java.util.Scanner;

public class Test02 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入月份值（1-12）：");
        int m = input.nextInt();

        Month month = Month.getByValue(m);
        System.out.println(month);
    }
}